a11y atspi: Fix reporting table cell pos at index (0,0)
authorMichael Weghorn <m.weghorn@posteo.de>
Fri, 7 Jul 2023 13:23:06 +0000 (15:23 +0200)
committerRaspbian forward porter <root@raspbian.org>
Wed, 22 Nov 2023 04:54:09 +0000 (04:54 +0000)
commitb636cd8140366eecedd36e491ca55baa80257244
treea9ed5990c1a4e888a8ac9991b8bb69e940c58ed2
parenta5cb63d19e2d5670dd862c79a47bbae87cbe217f
a11y atspi: Fix reporting table cell pos at index (0,0)

Table (cell) row and column indices both start at 0, so
an index of 0 is valid.

Adapt the check accordingly and check for non-negative
indices instead of positive ones.

(`gtk_cell_accessible_parent_get_cell_position` sets -1
in the fallback case, so that's still handled as it used
to be.)

This fixes reporting the position of the table cell at
index (0,0) via AT-SPI.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5161
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6173
Origin: 3.24.39, commit:89517775183fa17f77c2cfc413dec86e751c3496

Gbp-Pq: Name a11y-atspi-Fix-reporting-table-cell-pos-at-index-0-0.patch
gtk/a11y/gtkcellaccessible.c